import { axios } from "@/services/axios";

const Employee = {
  get: data => axios.get(`api/employee/${data.id}`),
  getlist: params => axios.post(`api/employee/list`, params),
  create: data => axios.post("api/employee", data),
  getid: data => axios.get("api/employee", data),
  save: data => axios.post(`api/employee/${data.id}`, data),
  delete: data => axios.post(`api/employee/delete/${data.id}`),
  batchmove: data =>axios.post(`api/employee/batchmove`, data),
  getsellist: params => axios.post(`api/employee/sellist`, params),
};

export default Employee;